#!/bin/env python

# Lucid is Copyright (C) 2006 by Infiscape
#
# Original Author: Allen Bierbaum
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import sys
from PyQt4 import QtCore, QtGui

class Ui_Form(object):
   def setupUi(self, Form):
      Form.setObjectName("Form")
      Form.resize(QtCore.QSize(QtCore.QRect(0,0,459,418).size()).expandedTo(Form.minimumSizeHint()))

      self.vboxlayout = QtGui.QVBoxLayout(Form)
      self.vboxlayout.setMargin(0)
      self.vboxlayout.setSpacing(0)
      self.vboxlayout.setObjectName("vboxlayout")

      self.splitter = QtGui.QSplitter(Form)
      self.splitter.setOrientation(QtCore.Qt.Vertical)
      self.splitter.setObjectName("splitter")

      self.widget = QtGui.QWidget(self.splitter)
      self.widget.setObjectName("widget")

      self.vboxlayout1 = QtGui.QVBoxLayout(self.widget)
      self.vboxlayout1.setMargin(0)
      self.vboxlayout1.setSpacing(0)
      self.vboxlayout1.setObjectName("vboxlayout1")

      self.hboxlayout = QtGui.QHBoxLayout()
      self.hboxlayout.setMargin(0)
      self.hboxlayout.setSpacing(0)
      self.hboxlayout.setObjectName("hboxlayout")

      self.label = QtGui.QLabel(self.widget)
      self.label.setObjectName("label")
      self.hboxlayout.addWidget(self.label)

      self.mFilenameEdit = QtGui.QLineEdit(self.widget)
      self.mFilenameEdit.setReadOnly(True)
      self.mFilenameEdit.setObjectName("mFilenameEdit")
      self.hboxlayout.addWidget(self.mFilenameEdit)

      self.mFileOpenButton = QtGui.QToolButton(self.widget)
      self.mFileOpenButton.setObjectName("mFileOpenButton")
      self.hboxlayout.addWidget(self.mFileOpenButton)
      self.vboxlayout1.addLayout(self.hboxlayout)

      self.hboxlayout1 = QtGui.QHBoxLayout()
      self.hboxlayout1.setMargin(0)
      self.hboxlayout1.setSpacing(0)
      self.hboxlayout1.setObjectName("hboxlayout1")

      self.vboxlayout2 = QtGui.QVBoxLayout()
      self.vboxlayout2.setMargin(3)
      self.vboxlayout2.setSpacing(4)
      self.vboxlayout2.setObjectName("vboxlayout2")

      self.pushButton = QtGui.QPushButton(self.widget)

      sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(0),QtGui.QSizePolicy.Policy(0))
      sizePolicy.setHorizontalStretch(0)
      sizePolicy.setVerticalStretch(0)
      sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
      self.pushButton.setSizePolicy(sizePolicy)
      self.pushButton.setObjectName("pushButton")
      self.vboxlayout2.addWidget(self.pushButton)

      self.pushButton_2 = QtGui.QPushButton(self.widget)

      sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(0),QtGui.QSizePolicy.Policy(0))
      sizePolicy.setHorizontalStretch(0)
      sizePolicy.setVerticalStretch(0)
      sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth())
      self.pushButton_2.setSizePolicy(sizePolicy)
      self.pushButton_2.setObjectName("pushButton_2")
      self.vboxlayout2.addWidget(self.pushButton_2)
      self.hboxlayout1.addLayout(self.vboxlayout2)

      self.frame = QtGui.QFrame(self.widget)

      sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(5))
      sizePolicy.setHorizontalStretch(0)
      sizePolicy.setVerticalStretch(0)
      sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
      self.frame.setSizePolicy(sizePolicy)
      self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
      self.frame.setFrameShadow(QtGui.QFrame.Raised)
      self.frame.setObjectName("frame")
      self.hboxlayout1.addWidget(self.frame)
      self.vboxlayout1.addLayout(self.hboxlayout1)

      self.mEditFrame = QtGui.QFrame(self.splitter)
      self.mEditFrame.setFrameShape(QtGui.QFrame.NoFrame)
      self.mEditFrame.setFrameShadow(QtGui.QFrame.Plain)
      self.mEditFrame.setLineWidth(0)
      self.mEditFrame.setObjectName("mEditFrame")
      self.vboxlayout.addWidget(self.splitter)

      self.retranslateUi(Form)
      QtCore.QMetaObject.connectSlotsByName(Form)

   def retranslateUi(self, Form):
      Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
      self.label.setText(QtGui.QApplication.translate("Form", "File:", None, QtGui.QApplication.UnicodeUTF8))
      self.mFileOpenButton.setText(QtGui.QApplication.translate("Form", "...", None, QtGui.QApplication.UnicodeUTF8))
      self.pushButton.setText(QtGui.QApplication.translate("Form", "ScaleImage", None, QtGui.QApplication.UnicodeUTF8))
      self.pushButton_2.setText(QtGui.QApplication.translate("Form", "Slice Image", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
   app = QtGui.QApplication(sys.argv)
   Form = QtGui.QWidget()
   ui = Ui_Form()
   ui.setupUi(Form)
   Form.show()
   sys.exit(app.exec_())
